package com.guodi.model.service.impl;

import com.guodi.core.mp.base.BaseServiceImpl;
import com.guodi.model.entity.UserOrg;
import com.guodi.model.mapper.UserOrgMapper;
import com.guodi.model.service.IUserOrgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserOrgServiceImpl extends BaseServiceImpl<UserOrgMapper, UserOrg> implements IUserOrgService {

    @Resource
    private UserOrgMapper userOrgMapper;


    @Override
    public void delByUserId(Long userId) {
        userOrgMapper.delByUserId(userId);
    }

    @Override
    public UserOrg getByUserId(Long userId) {
        UserOrg userOrg = userOrgMapper.getByUserId(userId);
        return userOrg;
    }
}
